package com.psp.bu.persist.dao;

import java.util.List;

import com.psp.bu.model.CategoryProductRelationBean;
import com.psp.bu.model.ProductAttributeBean;
import com.psp.bu.model.ProductAttributeRelationBean;
import com.psp.bu.model.ProductSkuBean;

public interface ProductAttributeDao {

	int updateList(List<ProductAttributeBean> attrs);
	
	int insertList(List<ProductAttributeBean> attrs);
	
	int insertProAttriRelation(List<ProductAttributeRelationBean> relas);
	
	int insertProductUpdateLog(ProductAttributeRelationBean log);
	
	int insertCateProductRelation(CategoryProductRelationBean cateproduct);
	
	/**
	 * 根据商品id获取商品属性
	 * @return
	 */
	List<ProductAttributeBean> selectListByPid(String pid);
	
	/**
	 * 根据服务分类获取商品固定属性
	 * @return
	 */
	List<ProductAttributeBean> selectListByCateCode(int cateCode);
	
	/**
	 * 批量插入产品sku
	 * @param skus
	 * @return
	 */
	int insertProductSkuList(List<ProductSkuBean> skus);

	int updateProAttributes(String pid, int i);

	int updateProSkus(String pid, int i);
	
}
